home *** CD-ROM | disk | FTP | other *** search
/ By Popular Request 2.0 / By Popular Request 2.0 (Arsenal Computer).ISO / amiga_6 / tiffdtyp.lha / sources / tiffunc.c < prev   
Text File  |  1995-04-17  |  995b  |  38 lines

  1.     #include <exec/types.h>
  2.     #include <dos/dos.h>
  3.     #include <dos/dosextens.h>
  4.     #include <datatypes/datatypes.h>
  5.  
  6.     #include <clib/exec_protos.h>
  7.     #include <clib/dos_protos.h>
  8.     #include <clib/utility_protos.h>
  9.  
  10.     #include <pragmas/exec_pragmas.h>
  11.     #include <pragmas/dos_pragmas.h>
  12.     #include <pragmas/utility_pragmas.h>
  13.  
  14.     /*****************************************************************************/
  15.  
  16.     #define SysBase          dthc->dthc_SysBase
  17.     #define DOSBase          dthc->dthc_DOSBase
  18.     #define UtilityBase      dthc->dthc_UtilityBase
  19.  
  20.     /*****************************************************************************/
  21.  
  22.     BOOL __asm DTHook (register __a0 struct DTHookContext * dthc)
  23.     {
  24.     BOOL retval = FALSE;
  25.        
  26.     ULONG ch;
  27.  
  28.         /* Make sure we have a buffer */
  29.         if (dthc->dthc_Buffer)
  30.         {
  31.             ch = *((ULONG *)dthc->dthc_Buffer);
  32.             if(ch==0x4d4d002a || ch==0x49492a00)
  33.                 return TRUE;
  34.         }
  35.         return retval;
  36.     }
  37.  
  38.